const mysql = require("mysql");
const { db } = require("../project.config");

const database = mysql.createPool({
  host: db.databaseHost || "127.0.0.1",
  user: db.databaseUser || "root",
  password: db.databasePwd || "",
  database: db.databaseName || "",
});

module.exports = database;
